#【横扫千军】
execute rotated ~ 0 positioned ^ ^ ^4.5 as @e[distance=0..4.4,type=!chest_minecart] at @s facing entity @p[tag=BOSSmieshang] feet rotated ~ 0 run tp @s ^ ^0.2 ^-2


#【恶魔之触】对未携带的目标
execute rotated ~ 0 positioned ^ ^ ^4.5 run scoreboard players remove @a[scores={BOSSmieshang5=0},distance=..4.4] BOSSmieshang5 3
#【魔影回溯】对未携带的目标
execute rotated ~ 0 positioned ^ ^ ^4.5 if entity @a[scores={BOSSmieshang5=..0},distance=..4.4] run effect give @s instant_health 1 0 true


#【恶魔之触】对携带的目标
execute rotated ~ 0 positioned ^ ^ ^4.5 run effect give @a[scores={BOSSmieshang5=1..},distance=..4.4,limit=3] instant_damage 1 0 true
execute rotated ~ 0 positioned ^ ^ ^4.5 run effect give @a[scores={BOSSmieshang5=1..},distance=..4.4,limit=3] regeneration 1 3 true
#【魔影回溯】对携带的目标
execute rotated ~ 0 positioned ^ ^ ^4.5 if entity @a[scores={BOSSmieshang5=1..},distance=..4.4] run function efclear

#【恶魔之触】清空恶魔之触标记
execute rotated ~ 0 positioned ^ ^ ^4.5 run scoreboard players set @a[scores={BOSSmieshang5=1..},distance=..4.4] BOSSmieshang5 0

tellraw @a [{"selector":"@s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"：释放技能","color":"blue","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"【横扫千军】","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"—灭殇","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]

scoreboard players set @s skCDJPG 10
scoreboard players reset @s skDiamond_sword1